home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
416_01
/
matrix
/
3d.h
< prev
next >
Wrap
C/C++ Source or Header
|
1989-11-17
|
758b
|
32 lines
/* Type definitions */
#ifndef defsmat
#include <matrix.h>
#endif
#ifndef defs3d
#define defs3d 1
#define pi (355.0/113.0)
typedef struct
{
int points;
int lines;
double *pdat;
int *ldat;
} object,*objectptr;
/* function prototypes */
int tran3(matrixptr m,double tx,double ty,double tz);
int scale3(matrixptr m,double sx,double sy,double sz);
int rot3(matrixptr m,double theta,int axis);
int genrot(double px,double py,double pz,double qx,double qy,double qz,\
double gamma,matrixptr m);
double angle(double ax,double ay);
void p3mult(double *,matrixptr);
int objcop(objectptr s,objectptr d);
int init3d(void);
void objtran(objectptr o,matrixptr m);
void objprin(objectptr o);
void objdraw(objectptr o);
#endif